]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
audioDeviceSelection: Center-align icons
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Oct 2020 01:29:18 +0000 (03:29 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 21 Oct 2020 01:29:18 +0000 (03:29 +0200)
When the icon area gets allocated additional space, we want the
icons centered rather than left-aligned. This may happen in locales
with long-ish translations for the title or buttons when only a
subset of possible icons is shown.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3307

js/ui/audioDeviceSelection.js

index 1e9cb11fec39de50166a1aa3562bf052ade327f6..07b817133909c1985a8b8a757c2b6c4d28aa0081 100644 (file)
@@ -43,6 +43,7 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
 
         this._selectionBox = new St.BoxLayout({
             style_class: 'audio-selection-box',
+            x_align: Clutter.ActorAlign.CENTER,
             x_expand: true,
         });
         content.add_child(this._selectionBox);